import requests
from util.logger import get_looger


logger = get_looger("三角洲物品.log", __file__)

urls = [f"https://api.dfhub.cn/index.php/api/items/getItemsList?page={page}&pageSize=12&search=&category=all&propType=&grade=all&sort=price_desc" for page in range(1,3)]

i = 1
for url in urls:
    logger.info(f"正在爬取第{i}页")
    res = requests.get(url)

    print(res.status_code)
    print(res.json())



    i+=1









